<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="Articles.Gui.AspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<swf:BizProc runat="server" ID="cbArt2" factoryName="genericArticles">
	<State entireTree="true" EditModeSessionKey="GlobalEdit" includeSelf="false"  resetDepth="true"/>
	<ParentBizProc id="gArt1" fieldName="id" dataId="pid" />
</swf:BizProc>
	<swf:BizProc ID="cAttachGroup" runat="server" FactoryName="articleAttachmentGroups">
		<ParentBizProc id="cbArt2" fieldName="id" dataId="pid" />
		<State includeFiles="true" />
	</swf:BizProc>
<table cellpadding="2" cellspacing="2">
	<tr>
		<td style="width:45%;vertical-align:top;text-align:left">
			<div id="article" class="articlebox">
				<div class='title'><swf:ReadOnlyText ID="title" runat="server" /></div>
				<div class="mainMediaArea">
					<asp:Image CssClass="media" ID="primaryPicture_name" runat="server" ImageUrl="/$mediaCacheName$/SmallMedium/$primaryPicture.name$" EnableViewState="false"/><br />
				</div>
				<swf:ReadOnlyText CssClass="body" ID="body" runat="server"  Width="100%" Height="100%" />
			</div>
			<h3><asp:Label ID="_lblCArtLabel" runat="server" >Contents</asp:Label></h3>
			<div id="childArticles">
				<snc:ComplexBizObjListDisplay ID="relatedArticles" runat="server" 
					ReadOnlyTemplate="Articles.Gui.AspNet.ArticleListDisplay-TextOnlyTree"
					ParentBizProcIds="cbArt2">
						<macros navLink="$#AjaxCall-BizObjSelected$" />
				</snc:ComplexBizObjListDisplay>
			</div>
		</td>
		<td style="width:55%;vertical-align:top">
				<span class="button3"><snc:ActionButton runat="server" ID="ActionButton10" Actions="cbArt2.MovePrev" Text="Previous" /></span>
				<span class="button3"><snc:ActionButton runat="server" ID="ActionButton11" Actions="cbArt2.MoveNext" Text="Next" /></span>
		  		<snc:NitobiBizObjDisplay runat="server" ID="cad1"
					ParentBizProcIds="cbArt2" 
					ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay$metaType$"
					EditableTemplate="Articles.Gui.AspNet.ArticleRWDisplay" >
				</snc:NitobiBizObjDisplay>
				<art:FileAttachmentGroupsListDisplay runat="server" ID="cfat" ParentBizProcIds="cAttachGroup"
				CssClass="FileAttachOuterBox"
				ReadOnlyTemplate="Articles.Gui.AspNet.FileAttachmentGroupsListDisplay-Style1"/>
				<div class="clearer"></div>
				<span class="button3"><snc:ActionButton runat="server" ID="ActionButton12" Actions="cbArt2.MovePrev" Text="Previous" /></span>
				<span class="button3"><snc:ActionButton runat="server" ID="ActionButton13" Actions="cbArt2.MoveNext" Text="Next" /></span>
		</td>
	</tr>
</table>


	
	
	
	